package com.xiaotu.dao;

import com.xiaotu.model.TvModel;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * @author 张晓
 * @create 2021-07-07 14:05
 */
public interface TvDao extends BaseMapper<TvModel> {

    @Select("SELECT tvid,tvname,alias,tvtype,imageurl,showtype,platform,firstplaytime,actor,director,screenwriter,releasetime,sellcompany FROM basicinfo.tab_tv_info ORDER BY tvid LIMIT 10")
    List<TvModel> getTvList();

    @Select("SELECT tvname FROM basicinfo.tab_tv_info LIMIT 10")
    List<Map<String, Object>> getTvList2();

}
